﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.SystemManage
{
    /// <summary>
    ///菜单授权表
    /// </summary>
    [Table("SysMenuAuthorize")]
    public class MenuAuthorizeEntity : BaseCreateEntity
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? MenuId { get; set; }
        /// <summary>
        /// 授权表ID
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? AuthorizeId { get; set; }
        /// <summary>
        /// 授权状态
        /// </summary>
        public int? AuthorizeType { get; set; }
        /// <summary>
        /// 授权ID
        /// </summary>
        [NotMapped]
        public string AuthorizeIds { get; set; }
    }
}
